import Connect from "./Connect.js"
import InitApi from "../api/InitApi.js"


export default class Smb {

  constructor(option){
    this.host = option.host
    this.userName = option.userName
    this.password = option.password

    this.Connect = new Connect({
      host:this.host, 
      port: 445,
      domain: option.domain,
      userName: this.userName,
      password: this.password
    })
   

  }

  init(){
    try{
      InitApi.init(this.Connect)
    }catch(e){
      console.log("初始化错误", e)
    }
  }

}